package com.holly.unit.deform.designer.service.impl;

import com.holly.unit.deform.designer.mapper.DdlMapper;
import com.holly.unit.deform.designer.service.DdlService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 类描述: 数据定义语言服务实现类
 *
 * @author fxr
 * @version 1.0.0
 * @date 2022/8/2 15:57
 */
@Service
@Slf4j
public class DdlServiceImpl implements DdlService {

    @Autowired
    private DdlMapper mapper;

    @Override
    public boolean createTable(String ddl) {
        return mapper.createTable(ddl) > 0;
    }

    @Override
    public boolean alertTable(String ddl) {
        return mapper.alertTable(ddl) > 0;
    }
}
